package com.yueyang.sojourn.server.model.dto;

import com.yueyang.sojourn.server.model.enums.JumpTypeEnum;
import com.yueyang.sojourn.server.validation.annotation.EnumValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author andy.yang
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-03-24
 */
@Data
@ToString
@ApiModel("批量编辑项目分账")
public class  EditProjectShareDto {
    /**
     * id、
     */
    @ApiModelProperty(value = "id", required = true)
    private Long id;

    /**
     * 分账接收方id、
     */
    @ApiModelProperty(value = "商户id", required = true)
    @NotBlank(message = "[商户id]不能为空")
    private Long receiverId;

//    /**
//     * 分账接收方在此项目中类型：项目商户(拥有方)、运营方、平台、
//     */
//    @ApiModelProperty(value = "分账接收方在此项目中类型：1-拥有方商户 3-运营方 4-平台", required = true)
//    @NotBlank(message = "[商户类型]不能为空")
//    private Integer receiverType;

    /**
     * 分账比例
     */
    @ApiModelProperty(value = "分账比例", required = true)
    @NotBlank(message = "[分账比例]不能为空：1-99")
    private BigDecimal shareRatio;

}
